extends ../../layout/layout

block content
  .content-wrapper
    .search-condition
      form#form-search
        .form-inline
          .form-group
            label.marginR10 城市：
              select.form-control.form-width100(name="cityId")
          .form-group
            label.marginR10 供应商名称：
              input.form-control.form-width150(name="name" placeholder="")
          .form-group
            label.marginR10 许可证号：
              input.form-control.form-width150(name="licenseId" placeholder="")
          .form-group
            button.pull-right.btn.btn-default#btn-search(type="button")
              i.fa.fa-search
              span 查询
          //- .form-group
          //-   label.marginR10 状&emsp;态：
          //-     select.form-control.form-width100(name="status")
          //-       option(value="") 请选择
          //- .form-group
          //-   label.marginR10 企业名称：
          //-     select.form-control.form-width100(name="name")
          //-       option(value="") 请选择
          //- .form-group
          //-   label.marginR10 ID：
          //-     input.form-control.form-width150(name="kid" placeholder="")
          //- .form-group
          //-   label.marginR10 录入时间：
          //-     input.form-control.form-width150#createDate(name="createDate" placeholder="")
        //- .form-inline.marginT10
        //-   .form-group
        //-     label.marginR10 联系人：
        //-       input.form-control.form-width150(name="contact" placeholder="")
        //-   .form-group
        //-     label.marginR10 联系电话：
        //-       input.form-control.form-width150(name="contactPhone" placeholder="")
    .com-op.marginT10
      button.btn.btn-default.marginR10#btn-add(type="button")
        i.fa.fa-plus
        span 新增
      button.btn.btn-default.marginR10#btn-edit(type="button")
        i.fa.fa-edit
        span 修改
      button.btn.btn-default.marginR10#btn-block(type="button")
        //- i.fa.fa-?
        span 停用
      button.btn.btn-default.marginR10#btn-use(type="button")
        //- i.fa.fa-?
        span 启用
      button.btn.btn-default.marginR10#btn-export(type="button")
        //- i.fa.fa-?
        span 导出
      button.btn.btn-default.marginR10#btn-import(type="button")
        //- i.fa.fa-?
        span 导入

    .content-body.marginT10#table-box
      table.table#table-supplier
      #pager-supplier

block vendor_css
  link(rel='stylesheet', type="text/css", href="../../vendor/jqGrid/css/ui.jqgrid-bootstrap.css")

block vendor_js
  script(src="../../vendor/jqGrid/js/jquery.jqGrid.js")
  script(src="../../vendor/jqGrid/js/i18n/grid.locale-cn.js")
  script(src="../../vendor/laydate/laydate.js")
  script(src="../../vendor/jquery-validation-1.17.0/jquery.validate.min.js")

block self_js
  script(src="../../js/module/vehicle/supplier.js")

block layer

  //- 新增/查看/修改
  .layer-box#layer-supplier-detail
    form.mw1200.padding20#form-supplier-detail(name="form-supplier-detail", autocomplete="off")
      +supplierForm

mixin supplierForm
  .d-header 供应商信息
  .padding20
    .row.form-row.form-row-sm
      .col-xs-4
        .form-text 城市：
        .form-container
          select.form-control(name="cityId", disabled)
      .col-xs-4
        .form-text 名称：
        .form-container
          input.form-control(name="name", placeholder="请输入公司名称", disabled)
      .col-xs-4
        .form-text 公司ID：
        .form-container
          input.form-control(name="supplierNo", disabled)
    .row.form-row.form-row-sm
      .col-xs-4
        .form-text 编号：
        .form-container
          input.form-control(name="kid", readonly)
    .row.form-row.form-row-sm
      .col-xs-3
        .form-text 地址：
        .form-container.form-inline
          //- select.form-control.form-width100.marginR10(name="prov" disabled)
          //-   option(value="") 省
          //- select.form-control.form-width100.marginR10(name="city" disabled)
          //-   option(value="") 市
          //- select.form-control.form-width100.marginR10(name="county" disabled)
          //-   option(value="") 区/县
          input.form-control.form-width500(name="address", placeholder="详细地址", disabled)
    .row.form-row.form-row-sm
      .col-xs-4
        .form-text 许可证号：
        .form-container
          input.form-control(name="licenseId", placeholder="网络预约出租车经营许可证", disabled)
      .col-xs-4
        .form-text 经营区域：
        .form-container
          input.form-control(name="businessArea", placeholder="请输入经营区域", disabled)
      .col-xs-4
        .form-text 发证机构名称：
        .form-container
          input.form-control(name="census", placeholder="请输入发证机构名称", disabled)
    .row.form-row.form-row-sm
      .col-xs-8
        .form-text 有效期：
        .form-container
          input.form-control#licensePeriod.form-width200(name="licensePeriod",disabled placeholder="请输入有效期")
          input(type="hidden" name="licenseOn ")
          input(type="hidden" name="licenseOff")
      .col-xs-4
        .form-text 初次发证日期：
        .form-container
          input.form-control#getLicenseDate(name="getLicenseDate", placeholder="请输入初次发证日期", disabled)
    .row.form-row.form-row-sm
      .col-xs-4
        .form-text 证照状态：
        .form-container
          select.form-control(name="licenseState" disabled)
            option(value="") 请选择
            option(value="0") 有效
            option(value="1") 失效
      .col-xs-4
        .form-text 联系人：
        .form-container
          input.form-control(name="contact", placeholder="请输入联系人姓名", disabled)
      .col-xs-4
        .form-text 手机号：
        .form-container
          input.form-control(name="contactPhone", placeholder="请输入联系人手机号", disabled)
    .row.form-row.form-row-sm
      .col-xs-4
        .form-text 紧急联系人：
        .form-container
          input.form-control(name="emergencyContact", placeholder="请输入紧急联系人姓名", disabled)
      .col-xs-4
        .form-text 手机号：
        .form-container
          input.form-control(name="emergencyContactPhone", placeholder="请输入紧急联系人手机号", disabled)
      .col-xs-4
    //- .row.form-row.form-row-sm
    //-   .col-xs-4
    //-     .form-text 供应用车类型：
    //-     .form-container
    //-       select.form-control(name="", disabled)
    //-   .col0xs-4
    //-     .form-container
    //-       button.btn.btn-default(type="button")
    //-         i.fa.fa-plus
    //-         span 继续添加
    .row.form-row.form-row-sm
      .col-xs-12
        .form-text 备注：
        .form-container
          textarea.form-control(name="remark" placeholder="请输入备注信息")

